//
//  NSNumber+Helper.m
//  TQServy
//
//  Created by 寒竹子 on 15/4/23.
//  Copyright (c) 2015年 Hangang. All rights reserved.
//

#import "NSNumber+Helper.h"

@implementation NSNumber (Helper)

- (void)saveNumberToUserDefaultsWithKey:(NSString *)key
{
    [[NSUserDefaults standardUserDefaults] setObject:self forKey:key];
}

+ (NSNumber *)getNumberWithKey:(NSString *)key
{
    return [[NSUserDefaults standardUserDefaults] objectForKey:key];
}

@end
